﻿<Window x:Class="Waf.InformationManager.AddressBook.Modules.Presentation.Views.SelectContactWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Waf.InformationManager.AddressBook.Modules.Applications.ViewModels;assembly=Waf.InformationManager.AddressBook.Modules.Applications"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        Title="Select contact" Icon="{StaticResource InformationManagerImageSource}" Height="410" Width="550" ShowInTaskbar="False"
        d:DataContext="{d:DesignInstance vm:SelectContactViewModel}">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>    
        
        <ContentControl Content="{Binding ContactListView}" MouseDoubleClick="ContactListViewMouseDoubleClick"/>

        <Border Grid.Row="1" Background="{x:Static SystemColors.ControlBrush}">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,11,11">
                <Button Command="{Binding OkCommand}" Content="_OK" IsDefault="True"/>
                <Button Content="_Cancel" IsCancel="True"/>
            </StackPanel>
        </Border>
    </Grid>
</Window>
